package com.zzptc.easyshop.service;

import com.zzptc.easyshop.vo.VO;

import java.sql.SQLException;
import java.util.List;

/**
 * 业务层   业务是由客户提出  不一定是原子操作
 */
public interface IService {

    //新增  适用登陆、商品、订单等模块
    boolean insert(VO vo)throws SQLException;
    //获取所有
    List getAll() throws SQLException;
    //根据ID删除记录
    boolean deleteByID(VO vo)throws SQLException;
    //更新记录
    boolean update(VO vo)throws SQLException;
    //根据ID查询数据
    VO getByID(VO vo)throws SQLException;
}
